package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.UserMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMessageMapper {
    int insert(UserMessage record);

    List<UserMessage> selectAll();

    List<UserMessage> selectForUserId(@Param("user1Id") String user1Id, @Param("user2Id") String user2Id);

    //1查2 ,2查1
    void updateState(@Param("user1Id") String user1Id, @Param("user2Id") String user2Id);

}